package SpringEvent.event.listener;

import SpringEvent.event.MyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

/**
 * @author caihe
 * @date 2021/11/10 16:00
 */
@Service
public class MyEventListener implements ApplicationListener<MyEvent> {
    
    @Override
    public void onApplicationEvent(MyEvent event) {
        System.out.println("事件开始执行。。。");
    }
    
}
